var addtwo = require('./addtwo').addtwo;

var base = 10;

console.log(addtwo(10));

console.log(global)


// 设置编码之后读取的就是字符串而不是缓冲器
process.stdin.setEncoding('utf8')
process.stdin.on('readable', function () {
    var input = process.stdin.read();
    if (input != null) {
        process.stdout.write(input + " 10000")

        // var command = input.toString().trim();
        var command = input.trim();
        if (command == 'exit') {
            process.exit(0)
        }
    }
})